package com.yuandengta.yomall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuandengta.common.utils.PageUtils;
import com.yuandengta.yomall.product.entity.CategoryEntity;
import com.yuandengta.yomall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author OptimisticDevelopers
 * @email example51315@qq.com
 * @date 2020-12-22 22:26:52
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /*
    * 查询所有分类以及子类
    * 返回来 树形结构
    * */
    List<CategoryEntity> listWithTree();
    /*删除*/
    void delCategory(Long[] catIds);

    Long[] findCategoryPath(Long catelogId);

    List<CategoryEntity> getLevelCategories();

    Map<String, List<Catalog2VO>> getCatalogJson();
}

